package com.kdgz.kdgz.sevice.impl;

import com.kdgz.kdgz.beans.Rule;
import com.kdgz.kdgz.mapper.RuleMapper;
import com.kdgz.kdgz.sevice.RuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Veneno
 * @Desc
 * @date 2021/3/29
 */
@Service
public class RuleServiceImpl implements RuleService {
    @Autowired
    private RuleMapper ruleMapper;

    @Override
    public Rule selectRule() {
        return ruleMapper.selectById(1);
    }

    @Override
    public Integer updateRule(Rule rule) {
        return ruleMapper.updateById(rule);
    }
}
